function MapUtils() {"use strict";
}

// Load map
MapUtils.loadMap = function(mapName) {"use strict";
	var map,SIZE_X,SIZE_Y,i,j,busyCellsMap, objectBag;
	//
	// Dimensiones del map
	//
	SIZE_X = 200;
	SIZE_Y = 200;
	//
	// Map
	//
	// Create map
	map = new Map();
	map.name = mapName;
	map.cells = new Array(SIZE_X);
	for (i = 0; i < map.cells.length; i=i+1) {
		map.cells[i] = new Array(SIZE_Y);
	}
	Game.model.map = map;
	//
	// Create Map cells.
	//
	for (i = 0; i < map.cells.length; i=i+1) {
		for (j = 0; j < map.cells[i].length; j=j+1) {
			map.cells[i][j] = new Cell();
			if (i>5 || j> 5) {
				map.cells[i][j].name = "soil_1";
			}
		}
	}
	//
	// Create object bag
	//
	objectBag = new ObjectBag(SIZE_X, SIZE_Y);
	Game.model.objectBag = objectBag;
	//
	// create objects
	//
	objectBag.add(new Scout(0.5, 0.5));
	objectBag.add(new Scout(1.5, 0.5));
	objectBag.add(new Scout(2.5, 1.5));
	objectBag.add(new Scout(0.5, 3.5));
	objectBag.add(new Scout(1.5, 3.5));
	objectBag.add(new Scout(2.5, 3.5));
	objectBag.add(new Scout(3.5, 3.5));
	objectBag.add(new Tree(PaintableTypes.GRASS_1, 0.5, 6.5));
	objectBag.add(new Tree(PaintableTypes.GRASS_2, 1.5, 6.5));
	objectBag.add(new Tree(PaintableTypes.LOG_1, 2.5, 6.5));
	objectBag.add(new Tree(PaintableTypes.TREE_1, 3.5, 6.5));
	objectBag.add(new Tree(PaintableTypes.TREE_2, 4.5, 6.5));
	objectBag.add(new Tree(PaintableTypes.TREE_3, 5.5, 6.5));
	//
	// Set cammera position
	Game.gui.cammera.setPosition(2, 2);
	//
	return;
};
